package com.linhh.mall.center.common.util;

import cn.hutool.core.date.DateTime;

/**
 * @Author linhh
 * @Date 2022 10 16 12 17
 **/
public class DateTimeUtil {

    /**
     * 获取精确到秒的时间戳
     * @param dateTime
     * @return
     */
    public static int dataToTimestampT(DateTime dateTime){
        String timestamp = String.valueOf(dateTime.getTime()/10000);
        return Integer.valueOf(timestamp);
    }
}
